package com.ipartek.pruebas.dao;


public abstract class DAOFactory{
	
	public static final int OBDC = 1;
	public static final int MYSQL = 2;
	public static final int TXT = 3;
	
	public abstract AlumnoDAO getAlumno();
	public abstract CursoDAO getCurso();
	
	public static DAOFactory getFactoria(int BD){
		switch (BD) {
		case OBDC:
			return new OBDCDAOFactory();
		
		case MYSQL:
			return new MYSQLDAOFactory();
		
		case TXT:
			return new TXTDAOFactory();
		
		default:
			return new OBDCDAOFactory();
		}
		
	}
}
